<?php
/**
 * 初始化类*
 */
defined('o') || exit('404 not find file'); //防跳墙

define('ROOT', dirname(dirname(__FILE__))); // 项目地址

// 自动加载
function __autoload($class_name) {
	require_once(ROOT . '//include//' . $class_name . '.class.php');
} 
// error_reporting 报错级别
error_reporting(config :: create() -> systems['error']);
// 统一编码
header("Content-type: text/html; charset=" . config :: create() -> systems['charset']);
// 安全字符过滤
if (count($_GET) > 0)
	$_GET = usersystem :: _addslashes($_GET);
if (count($_POST) > 0)
	$_POST = usersystem :: _addslashes($_POST);
if (count($_COOKIE) > 0)
	$_COOKIE = usersystem :: _addslashes($_COOKIE);
if (count($_REQUEST) > 0)
	$_REQUEST = usersystem :: _addslashes($_REQUEST);

?>